package com.ocom.mqsimple.business.notMeal.impl;

import com.ocom.mqsimple.business.notMeal.NotMealProductService;
import com.ocom.mqsimple.utils.NotMealProductUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class NotMealProductServiceImpl implements NotMealProductService {

    @Autowired
    private NotMealProductUtil notMealProductUtil;

    @Override
    public void handle(String msg) {
        log.info(" FaceErr-mq-开始【{}】",msg);
        //消息队列调用减库存接口  优先级越高越先执行完

        notMealProductUtil.notMealExport(msg,15);

        log.info(" FaceErr-mq-完成【{}】",msg);
    }
}
